<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>#{msg.reimPasswordTitle}</title>
    </h:head>
    <h:body>
        <div class="container">
            <ui:include src="Header.xhtml"/>
            <div class="content">
                <h3>#{msg.reimPasswordTitle}</h3>
                <p:messages autoUpdate="true" closable="true"/>
                <h:form>
                    <h:panelGrid id="grid" columns="2">
                        <p:outputLabel for="password" value="#{msg.passwordForm}"/>
                        <p:password id="password" match="confermaPassword" requiredMessage="#{msg.passwordRequiredM}" promptLabel="#{msg.passwordPLabel}" 
                                    weakLabel="#{msg.passwordWLabel}" goodLabel="#{msg.passwordGLabel}" strongLabel="#{msg.passwordSLabel}" 
                                    validatorMessage="#{msg.passwordValidatorM}" required="true" value="#{reimpostaPassword.password}" feedback="true" />

                        <p:outputLabel for="confermaPassword" value="#{msg.confPasswordForm}"/>
                        <p:password id="confermaPassword" requiredMessage="#{msg.confPasswordRequiredM}" required="true" value="#{reimpostaPassword.password}"/>
                    </h:panelGrid> 
                    <p:commandButton update="grid" action="#{reimpostaPassword.reimposta()}" value="#{msg.confermaDati}"/>
                </h:form>   
            </div>
            <ui:include src="Footer.xhtml"/>
        </div>
    </h:body>
</html>

